<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui"      
      xmlns:ui="http://java.sun.com/jsf/facelets">
    
    <ui:composition template="/template.xhtml">
        <ui:define name="top">
            <h:outputText value="Transporte"></h:outputText>
        </ui:define>        
        <ui:define name="content">    
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputLabel value="Id: " for="id" />
                    <h:inputText readonly="true" id="id" value="#{rolController.selected.id}" title="#{bundle.EditRolTitle_id}" required="true" requiredMessage="#{bundle.EditRolRequiredMessage_id}"/>
                    <h:outputLabel value="Nombre: " for="nombre" />
                    <h:inputText id="nombre" value="#{rolController.selected.nombre}" title="#{bundle.EditRolTitle_nombre}" />
                </h:panelGrid>
                <h:commandLink action="#{rolController.update}" value="Guardar"/>
                <br />
                <br />
                <h:commandLink action="#{rolController.prepareList}" value="Ver Lista Roles" immediate="true"/>
                <br />
                <br />
                <h:commandLink value="Ir Inicio" action="/index" immediate="true" />
            </h:form>
        </ui:define>
    </ui:composition>
</html>
